Please note: If you intend to use the dataset for purposes other than replication, we ask that you kindly inform the Retirement and Savings Institute at HEC Montreal via info.ire@hec.ca

** README for python scripts
Contact: Pierre-Carl Michaud, pierre-carl.michaud@hec.ca

Three notebooks produce figures and tables in the paper: 

* MTR.ipynb: produces Figure 1 on effective marginal tax rates
* example.ipynb: produces the example found in Figure OA.1. 
* preferences.ipynb: produces tables and figures for Appendix A on preferences. 

Tables are produced as tex files to be inserted in paper while figures are produced in png format with dpi=1200 resolution. 

A log of each notebook is found with the html extension. You can open it in any browser. 

The final dataset is included in this folder. Otherwise change the path to find it. 

Notebooks should be run preferably on the Anaconda distribution of Python. 

** README for Stata Analysis
Contact: Philippe d'Astous, philippe.dastous@hec.ca

Four .do files produce the tables and figures for the paper and the online appendix.
Stata Version 15 is used.

0_Main.do sets up the folder and runs the do files
1_Data.do gathers the original data and formats it
2_Weights_and_Imputation.do uses multiple imputation to assign missing values with information from the bracketing, conditional on basic sociodemographic covariates
3_Analysis.do runs the econometric analyses with each tables labeled as in the paper and the appendix

All datasets are included in this folder. Otherwise change the path to find it. 